﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Dev01.DataAccsess;
using System.Windows.Forms;

namespace Dev01.Controller
{
    class NhanVienCtrl
    {
        NhanVienData nhanvienData = new NhanVienData();

        public void HienThiCombobox(ComboBox cmb)
        {
            cmb.DataSource = nhanvienData.LoadNhanVien();
            cmb.DisplayMember = "NV_TEN";
            cmb.ValueMember = "NV_MA";
        }

        public void HienThiDataGridViewCombobox(DataGridViewComboBoxColumn dg)
        {
            dg.DataSource = nhanvienData.LoadNhanVien();
            dg.DisplayMember = "NV_TEN";
            dg.ValueMember = "NV_MA";
        }
    }
}
